package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取美国每日国债收益率曲线利率
* @author: codesmith
**/
public interface UsTycrBean extends BaseBean {
    String API_NAME = "us_tycr";
    
    interface Fields {
    String date = "date";    //日期
    String m1 = "m1";    //1月期
    String m2 = "m2";    //2月期
    String m3 = "m3";    //3月期
    String m6 = "m6";    //6月期
    String y1 = "y1";    //1年期
    String y2 = "y2";    //2年期
    String y3 = "y3";    //3年期
    String y5 = "y5";    //5年期
    String y7 = "y7";    //7年期
    String y10 = "y10";    //10年期
    String y20 = "y20";    //20年期
    String y30 = "y30";    //30年期
    }
    
    interface Params {
        date date = new date();
        /*
        * 日期 （YYYYMMDD格式，下同）
        */
        class date extends BaseRequestParam {
            { key = "date"; }
        }
        start_date start_date = new start_date();
        /*
        * 开始日期
        */
        class start_date extends BaseRequestParam {
            { key = "start_date"; }
        }
        end_date end_date = new end_date();
        /*
        * 结束日期
        */
        class end_date extends BaseRequestParam {
            { key = "end_date"; }
        }
        fields fields = new fields();
        /*
        * 指定输出字段（e.g. fields=&#39;m1,y1&#39;）
        */
        class fields extends BaseRequestParam {
            { key = "fields"; }
        }
    }
}